/*
 * Created on 30-ene-2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.juanfrivaldes.cio2005.gestion;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 * @author root
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class CrearZipForm extends ActionForm {
		
		
	
		/**
	 * Comment for <code>serialVersionUID</code>
	 */
	private static final long serialVersionUID = 3256723961709410102L;

		private String tipo;
	
		private static Log log = LogFactory.getLog(CrearZipForm.class); 
	
		private String[] seleccionados;
	
		public void reset(ActionMapping mapping, HttpServletRequest request) {
			seleccionados=null;
			tipo="resumen";
		}

		/**
		 * @return Returns the seleccionados.
		 */
		public String[] getSeleccionados() {
			return seleccionados;
		}
		/**
		 * @param seleccionados The seleccionados to set.
		 */
		public void setSeleccionados(String[] seleccionados) {
			this.seleccionados = seleccionados;
		}
		public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
			ActionErrors errors = new ActionErrors();

			if(seleccionados!=null){
			log.trace("Pedidos "+seleccionados.length);
			}
					
			return errors;
		}

		public String getTipo() {
			return tipo;
		}
		

		public void setTipo(String tipo) {
			this.tipo = tipo;
		}
		
	
}
